<%--
  Created by IntelliJ IDEA.
  User: HASEE
  Date: 2021/2/21
  Time: 20:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>开始页面</title>
    <script type="text/javascript" src="js/myjQuery.js"></script>
    <script>
        $(function () {
            $("#btn01").click(function () {
                $.ajax({
                    url:"json/review",
                    type:"get",
                    data:{
                    name:"李红磊",
                    sex:"男"
                    },
                    dataType:"json",
                    success(resp){
                        alert(resp.name+"  "+resp.sex)
                    }

                })
            })
        })
    </script>
</head>
<body>
    <center>
        <h5 style="color: blue">json的复习</h5><br>
        <button id="btn01">发起ajax请求</button>
    </center>
</body>
</html>
